﻿@model HelloMinasan.Web.Song.ViewModels.TestEntrie
@{
    ViewBag.Title = "EditTest";
}
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" />
<div class="contentSection" style="background-color:white">
    @using (Html.BeginForm())
    {
        @Html.HiddenFor(x => x.TestId);
        @Html.HiddenFor(x => x.SongId)
        <div class="contentSectionInside">
            @if (Model.IsSelectionBlock)
            {
                for (int i = 0; i < Model.Questions.Count(); i++)
                {
                <div class="questionQuiz">
                    <div class="containerAllProperties">
                        <div class="leftDivNoSize">@Html.LabelFor(x => x.Questions[i].QuestionContent)</div>
                        @Html.TextBoxFor(x => x.Questions[i].QuestionContent)
                    </div>
                    <div class="containerAllProperties">
                        <div class="leftDivNoSize">@Html.LabelFor(x => x.Questions[i].AnswerA)</div>
                        @Html.TextBoxFor(x => x.Questions[i].AnswerA)
                    </div>
                    <div class="containerAllProperties">
                        <div class="leftDivNoSize">@Html.LabelFor(x => x.Questions[i].AnswerB)</div>
                        @Html.TextBoxFor(x => x.Questions[i].AnswerB)
                    </div>
                    <div class="containerAllProperties">
                        <div class="leftDivNoSize">@Html.LabelFor(x => x.Questions[i].AnswerC)</div>
                        @Html.TextBoxFor(x => x.Questions[i].AnswerC)
                    </div>
                    <div class="containerAllProperties">
                        <div class="leftDivNoSize">@Html.LabelFor(x => x.Questions[i].AnswerD)</div>
                        @Html.TextBoxFor(x => x.Questions[i].AnswerD)
                    </div>
                    <div class="containerAllProperties">
                        <div class="leftDivNoSize">@Html.LabelFor(x => x.Questions[i].CorrectAnswer)</div>
                        @Html.TextBoxFor(x => x.Questions[i].CorrectAnswer)
                    </div>
                </div>
                }
            }
            else
            {
                <div class="containerAllProperties">
                    <div class="leftDivNoSize">@Html.LabelFor(x => x.SelectedPackage)</div>
                    @Html.DropDownListFor(x => x.SelectedPackage, Model.BlockPackage)
                </div>
            }
            <input type="submit" value="@ViewBag.ButtonName" name="submitButton" />
        </div>
    }
</div>
